package yjxxt.Dao;

import org.apache.ibatis.annotations.Param;
import yjxxt.entity.DeptEmp;
import yjxxt.entity.Emp;

import java.sql.SQLException;
import java.util.List;

public interface EmpDao {
    List<DeptEmp> findAllEmpWithDeptName() throws SQLException;
    Emp findEmpWithMaxSalary();
    int updateEmp(Emp emp);
    Emp findEmpById(int eid);
    int deleteEmpById(int eid);
    public int select(Emp  emp);
   public List<Emp> findEmpsByNameContaining(@Param("pageSize") int pageSize,@Param("currentPage") int currentPage,@Param("name") String name);

   public List<Emp> findEmp(@Param("job") String job, @Param("deptno") int deptno);
//    int addEmp(Emp emp);
}
